<!--
 * @Author: chenwll chenwell1025@163.com
 * @Date: 2024-10-28 14:07:58
 * @LastEditors: chenwll chenwell1025@163.com
 * @LastEditTime: 2024-10-29 17:35:29
 * @FilePath: \djinrong-uie:\chenwllCode\select\src\App.vue
 * @Description: 
-->
<template>
  <div id="app">
    <el-tabs v-model="activeName" @tab-click="handleClick">
      <el-tab-pane label="下拉表格，后端搜索" name="selectTable"></el-tab-pane>
      <el-tab-pane label="下拉树，后端搜索" name="selectTree"></el-tab-pane>
      <el-tab-pane label="普通下拉框，本地搜索" name="selectSearch"></el-tab-pane>
      <el-tab-pane label="普通下拉，后端搜索" name="selectSearchOriginView"></el-tab-pane>
      <el-tab-pane label="表格测试" name="tableView"></el-tab-pane>
    </el-tabs>
    <component :is="activeName"></component>
  </div>
</template>

<script>

export default {
  name: 'App',
  components: {
    'selectTable': () => import('./view/selectTableView'),
    'selectTree': () => import('./view/selectTreeView'),
    'selectSearch': () => import('./view/selectSearchView'),
    'selectSearchOriginView': () => import('./view/selectSearchView/origin.vue'),
    'tableView': () => import('./view/tableView')
  },
  data(){

    return {
      activeName: 'selectTable'
    }
  },
  methods:{
    handleClick(tab, event) {
        console.log(tab.paneName,"---------------------------", event);
      }
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
